<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{:lang('我的头部标题')}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="__CSS__/mui.min.css">
    <link rel="stylesheet" href="__FONTS__/iconfont.css">
    <link rel="stylesheet" href="__CSS__/layerout.css">
</head>
<body>
    {include file="public/foot" /}
    <header class="mui-bar mui-bar-nav">
        <h1 class="mui-title">{:lang('我的页面标题')}</h1>
    </header>
    <style>
        .mui-content>.mui-table-view:first-child {
            margin-top: 0px;
        }
        .mui-table-view .mui-media-object {
            line-height: 18px;
            max-width: 18px;
            height: 18px;
        }
        .mui-table-view-cell>a:not(.mui-btn) {
            margin:0px;
            background-color: #F7E0C6;
        }
    </style>
    <div class="mui-content">
        <ul class="mui-table-view">
            <li class="mui-table-view-cell mui-media" style="  padding: 0;  height: 20px;">
                 <a href="{:URL('info',['id'=>1])}">
                 <marquee  direction=left behavior=alternate>
                 <img class="mui-media-object mui-pull-left" src="__IMG__/laog1.png">
                    <div class="mui-media-body">
                       {$info.title}
                    </div>
                 </marquee>
                </a>

            </li>


        </ul>
        <div id="slider" class="mui-slider" >
            <div class="mui-slider-group mui-slider-loop">

                <!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播)
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="javascript:;">
                        <img src="__IMG__/muwu.jpg">
                    </a>
                </div>-->
                {php}
                $last=count($ad);
                {/php}
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="{$ad[$last-1]['link_url']}">
                        <img src="/uploads/images/{$ad[$last-1]['images']}">
                    </a>
                </div>
                {foreach $ad as $k=>$v}



                <!-- 第一张 -->
                <div class="mui-slider-item {eq name='$k' value='0'} mui-active{/eq}">
                    <a href="{$v.link_url}">
                        <img src="/uploads/images/{$v.images}">
                    </a>
                </div>

                {/foreach}
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="{$ad[0]['link_url']}">
                        <img src="/uploads/images/{$ad[0]['images']}">
                    </a>
                </div>
                <!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播)
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="javascript:;">
                        <img src="__IMG__/muwu.jpg">
                    </a>
                </div> -->
            </div>
            <div class="mui-slider-indicator">
                {foreach $ad as $k=>$v}
                <div class="mui-indicator {eq name='$k' value='0'} mui-active{/eq}"></div>
                {/foreach}

            </div>
        </div>
        <div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted" style="background: #fff;">
            <a class="mui-control-item mui-active" href="#item1mobile" style="border-right: 1px solid #eee;">{:lang('我的账户')}</a>
            <a class="mui-control-item" href="#item2mobile">{:lang('充值记录')}</a>
        </div>
        <div class="mui-slider-group">
            <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
                <ul class="mui-table-view myList">
                    <li class="mui-table-view-cell">
                        <span class="mui-pull-right">{$nickname}</span>{:lang('账户名称')}
                    </li>
                 <li class="mui-table-view-cell">
                        <span class="mui-pull-right">
                            {eq name="group_id" value="1"}
                            {:lang('普通会员')}
                            {else/}
                            {:lang('代理会员')}
                            {/eq}

                        </span>{:lang('级别')}
                    </li>
                </ul>
                <!--   <ul class="mui-table-view myList" style="margin-top: 10px;">
                      <li class="mui-table-view-cell logout">
                         <a href="javascript:;">{:lang('退出')}</a>
                    </li>
                </ul>-->
            </div>
            <div id="item2mobile" class="mui-slider-item mui-control-content">
                <ul class="mui-table-view record">
                    {foreach $res as $v}
                    <li class="mui-table-view-cell">
                        <p> <span>{:lang('手机号')}:{$v->phone}</span><span>{:lang('金额')}:{$v->order_money}</span></p>
                        <p><span>{:lang('代理商')}:{$daili[$v->cate_id]}</span>
                            <span>{:lang('状态')}:{:lang($ord_status[$v->ord_status])}</span></p>
                        <p><span>{:lang('时间')}:{$v->create_time}</span></p>
                    </li>
                    {/foreach}


                </ul>
            </div>

        </div>
    </div>
    <script src="__JS__/mui.min.js"></script>
    <script>
        mui("body").on('tap','a',function(){
            location.href=this.getAttribute('href');
        })
    </script>
</body>
</html>